
package com.wyzz.hr.action;

import com.wyzz.hr.base.wf.overtimerequest.OrWfApproverAction;
import com.wyzz.hr.vo.OvertimeFormBean;

public class EmpOvertimeAddAction extends OrWfApproverAction {

	public EmpOvertimeAddAction() {
	}

	public String executeInit() throws Exception {
		if (of_Bean == null)
			of_Bean = new OvertimeFormBean();
		initOfBean("create", of_Bean, null);
		return "success";
	}

	public String execute() throws Exception {
		String operate = "create";
		String info = super.authorityCondition;
		if ("ALL".equals(info))
			operate = "gm-create";
		if ("HR".equals(info))
			operate = "hr-create";
		if ("SUB".equals(info))
			operate = "mgr-create";
		return wfObjOpSingle(operate, of_Bean, null);
	}

	public OvertimeFormBean getOf_Bean() {
		return of_Bean;
	}

	public void setOf_Bean(OvertimeFormBean Of_Bean) {
		of_Bean = Of_Bean;
	}

	public String getInfoMeg() {
		return infoMeg;
	}

	public void setInfoMeg(String infoMeg) {
		this.infoMeg = infoMeg;
	}

	private static final long serialVersionUID = 1L;
	private OvertimeFormBean of_Bean;
	private String infoMeg;
}
